package mx.com.crowdgine.assetloader;

import java.nio.ByteBuffer;

public class Texture {
	protected ByteBuffer data;
	protected int width;
	protected int height;
	
	public Texture(){
		this.height=0;
		this.width=0;
		this.data=null;
	}
	
	public Texture(int width, int height){
		this.height = height;
		this.width = width;
		this.data = null;
	}
	private boolean initialized;
	private int id;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Texture(ByteBuffer data, int width, int height){
		this.height = height;
		this.width = width;
		this.data = data;
	}
	
	public int getHeight(){
		return height;
	}
	
	public ByteBuffer getPixels(){
		return data;
	}
	
	public int getWidth(){
		return width;
	}

	public boolean isInitialized() {
		return initialized;
	}

	public void setInitialized(boolean initialized) {
		this.initialized = initialized;
	}
	
	
	
}
